<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="f"%>
<%@ page import="java.util.List"%>
<%@ page isELIgnored="false" %> <%--isELIgnored=true禁用EL表达式--%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>用户中心</title>
	<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/css/reset.css">
	<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/css/main.css">
	<script type="text/javascript" src="<%=request.getContextPath() %>/js/jquery.min-2.1.1.js"></script>
	<script type="text/javascript" src="<%=request.getContextPath() %>/layui-v2.6.13/layui/layui.js"></script>
</head>
<body>
	<div class="header_con">
		<div class="header">
			<div class="fr">
				<div class="login_btn fl">
				    欢迎您：<em>${obj.uName}</em>
                    <span>|</span>
					<a href="loginPage">注销</a>
					<span>|</span>
					<a href="registerPage">注册</a>
				</div>
				<div class="user_link fl">
					<span>|</span>
					<a href="centerPage">用户中心</a>
					<span>|</span>
					<a href="/shop/cartPage?uId=${user.id}">我的购物车</a>
					<span>|</span>
					<a href="centerOrderPage">我的订单</a>
				</div>
			</div>
		</div>		
	</div>

	<div class="search_bar clearfix">
		<a href="/shop/list?id=${user.id}" class="logo fl"><img src="<%=request.getContextPath() %>/images/logo.png" style="width: 125px;height: 80px;"></a>
		<div class="sub_page_name fl">|&nbsp;&nbsp;&nbsp;&nbsp;用户中心</div>
		<div class="search_con fr">
			<input type="text" class="input_text fl" name="" placeholder="搜索商品">
			<input type="button" class="input_btn fr" name="" value="搜索">
		</div>		
	</div>

	<div class="main_con clearfix">
		<div class="left_menu_con clearfix">
			<h3>用户中心</h3>
			<ul>
				<li><a href="centerPage?id=${obj.id}" class="active">· 个人信息</a></li>
				<li><a href="centerOrderPage?id=${obj.id}">· 全部订单</a></li>
			</ul>
		</div>
		<div class="right_content clearfix">
				<div class="info_con clearfix">
				<h3 class="common_title2">基本信息</h3>
						<ul class="user_info_list">
							<li><span>用户名：</span>${obj.uName}</li>
							<li><span>联系方式：</span>${obj.uPhone}</li>
							<li><span>账户余额：</span>${obj.uMoney}</li>
							<li><span>操作： </span><a href="#" onclick="recharge()" id="recharge">充值</a> | <a href="#" onclick="changePass()" id="change">修改密码</a></li>
						</ul>

				</div>
		</div>
		</div>
	</div>

	<div class="footer">
		<div class="foot_link">
			<a href="#">张旭光太胖</a>
			<span>|</span>
			<a href="#">张旭光太丑</a>
			<span>|</span>
			<a href="#">张旭光太虚</a>
			<span>|</span>
			<a href="#">健脑补肾丸</a>
		</div>
		<p> 北京旭光补肾技术有限公司 </p>
		<p>电话：541885418828    京ICP备*******8号</p>
	</div>
	<script>
	    function recharge(){
	        layer.open({
                type:2,
                content:"rechargePage",
                area:["500px","300px"]
            })
	    }
	    function changePass(){
	        layer.open({
                type:2,
                content:"changePassPage",
                area:["500px","300px"]
            })
	    }
	</script>
</body>
</html>